package com.ruben.features;

/**
 * 接口案例
 *
 * @author <achao1441470436@gmail.com>
 * @since 2021/7/18 18:19
 */
public class InterfaceDemo {

    public interface Person {
        String NAME = "人";

        /**
         * 获取name
         *
         * @return java.lang.String
         * @author <achao1441470436@gmail.com>
         * @since 2021/7/18 18:27
         */
        static String getName() {
            return NAME;
        }

        /**
         * 吃
         *
         * @author <achao1441470436@gmail.com>
         * @since 2021/7/18 18:22
         */
        default void eat() {
        }

        /**
         * 喝
         *
         * @author <achao1441470436@gmail.com>
         * @since 2021/7/18 18:22
         */
        private void drink() {
        }
    }

}
